package com.hualan.mapper;

import com.hualan.pojo.ConsultComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 宋路康
 * @description 针对表【consult_comment】的数据库操作Mapper
 * @createDate 2025-04-28 11:52:48
 * @Entity com.hualan.pojo.ConsultComment
 */
@Mapper
public interface ConsultCommentMapper {

    int deleteByPrimaryKey(Long id);//删除
    //逻辑删除
    int deleteLogic(Long id);

    int insert(ConsultComment record);

    int insertSelective(ConsultComment record);

    ConsultComment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ConsultComment record);

    int updateByPrimaryKey(ConsultComment record);

    //查询所有咨询评价
    List<ConsultComment> selectCommentDetails();
    //批量删除
    int deleteBatch(List<Long> ids);

    //分页查询，模糊查询，查询所有
    List<ConsultComment> selectAllPage(@Param("evaluationContent") String evaluationContent);


}
